<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            padding-top: 200px;
            padding-left: 200px;
            box-sizing: border-box;
        }
        body>span{
            display: block;
            color: #50b1b1;
            font-size: 22px;
        }
        body>p {
            font-size: 16px;
        }
        div {
            width: 80px;
            height: 30px;
            border: #7cb6b6;
            background: #b9d4d4;
            line-height: 30px;
            text-align: center;
            font-size: 12px;
            cursor: pointer;
        }
    </style>
</head>
<body>
        <span>恭喜注册成功！^-^</span>
        <p>还有 <span class="time">5</span> 秒返回登录界面。。。</p>
        <div>直接返回></div>
</body>
<script>
    let time=document.querySelector('.time')
    let back=document.querySelector('div')
    let num=5
    function auto(){
        num--
        time.innerHTML=num
        if(num==1){
            window.location.href='/src/html/frontEnd/login.html'
        }
    }
    let set =setInterval(auto,1000)
    back.onclick=()=>{
        window.location.href='/src/html/frontEnd/login.html'
    }
</script>
</html>